﻿@model ADShop.Models.OrderProduct

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>
<div class="panel-body">
    <table class="table table-hover" id="sample-table-1">
        <thead>
            <tr>

                <th>
                    @Html.DisplayNameFor(model => model.IDOrder)
                </th>


                <th>
                    NameProduct
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Quantity)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.TotalPrice)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Recipient)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.AddressRecipient)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.EmailRecipient)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.PhoneRecipient)
                </th>

                <th>ShipMethod</th>
                <th>PaymenMethod</th>
            </tr>
        </thead>
        <tbody>
            <tr>


                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.IDOrder)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Product.NameProduct)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Quantity)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.TotalPrice)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Recipient)
                    </div>
                </td>

                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.AddressRecipient)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.EmailRecipient)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.PhoneRecipient)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.ShipMethod.NameShipMethod)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.PaymentMethod.NamePaymentMethod)
                    </div>
                </td>

            </tr>

        </tbody>
    </table>
</div>
   
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.IDOrder }, new { @class = "label label-default" }) |
    @Html.ActionLink("Quay Lại Danh Sách Đơn Đặt Hàng", "Index", null, new { @class = "label label-default" })
</p>
